﻿<?xml version="1.0" encoding="utf-8" ?>
<Feature id="Mapping" name="Mapping feature">
  <Dependencies>
	  <Dependency type="feature">BaseFrameworkFeature.xml</Dependency>
  </Dependencies>

  <ApplicationData>
    <Entry name="Mapping" nodeType="catalog from $CatalogHome$/Mappers">
      use MappingTypes factory
    </Entry>
  </ApplicationData>

  <ClassFactory id="MappingTypes">
    <Class type="Swaf.Mapping.NameAddressMapper,SwafCore.Mapping" name="NameAddressMapping" />
  </ClassFactory>

  <ClassFactory id="MappingFormatters">
    <Class type="Swaf.Mapping.NameAddressStringMapFormatter,SwafCore.Mapping">
      <Pattern>concat</Pattern>
      <Pattern>format{ws}({1+ {anychar}})</Pattern>
    </Class>
  </ClassFactory>

  <ClassFactory id="DestinationTypes">
    <Class type="Swaf.Mapping.MappingFactory,SwafCore.Mapping" factoryMethod="createBizObj" >
      <Pattern>bizobj{ws}({1+ {anychar}})</Pattern>
    </Class>
    <Class type="Swaf.Mapping.MappingFactory,SwafCore.Mapping" factoryMethod="createFlexiMap" >
      <Pattern>FlexiMap</Pattern>
    </Class>
  </ClassFactory>
</Feature>